/*
  S.M.A.C.K - An operating system kernel
  Copyright (C) 2010,2011 Mattias Holm and Kristian Rietveld
  For licensing and a full list of authors of the kernel, see the files
  COPYING and AUTHORS.
*/

#include <io.h>

char
inb(uintptr_t addr)
{
  unsigned char *a = (unsigned char *)addr;

  return *a;
}

void
outb(uintptr_t addr, char value)
{
  unsigned char *a = (unsigned char *)addr;

  *a = value;
}

unsigned int
inl(uintptr_t addr)
{
  unsigned int *a = (unsigned int *)addr;

  return *a;
}

void
outl(uintptr_t addr, unsigned int value)
{
  unsigned int *a = (unsigned int *)addr;

  *a = value;
}
